.page-package-details {
  .package-default-icon {
    content: var(--default-package-icon, url(../img/default-package-icon-256x256.png));
  }

  .nuget-trends-icon {
    filter: brightness(0) invert(var(--nuget-trends-icon-invert-value));
  }

  .no-border {
    border: 0;
  }

  h1 {
    margin-bottom: 0;
  }

  tr {
    border-bottom: 1px solid var(--neutralStroke2Rest);
  }

  .package-header {
    margin-bottom: 35px;
  }

  .content-hidden-notice {
    // Same margin as h1
    margin-top: (@line-height-computed * 1.5)
  }

  .package-title {
    margin-bottom: 16px;

    h1 {

      .title {
        font-size: 32px;
        margin-top: 40px;
        font-weight: 400;
        margin-right: 18px;
      }

      .version-title {
        font-size: 16px;
        font-weight: 400;
        color: var(--neutralForeground3Rest);
        margin-right: 14px;
        vertical-align: middle;
      }

      .package-icon {
        height: 32px;
        width: 32px;
        margin-top: 8px;
        margin-right: 12px;
      }
    }

    .prefix-reserve-title {
      background-color: var(--neutralBackground3Rest);
      display: inline-flex;
      align-items: center;
      border-radius: 100px;
      vertical-align: middle;
      gap: 4px;
      padding: 0px 6px;

      .reserved-indicator {
        width: 18px;
        margin-right: 5px;
        margin-left: 2px;
        color: var(--brandBackground1Rest);
      }

      .prefix-reserve-label {
        font-size: 14px;
        font-weight: 400;
        color: var(--neutralForeground2Rest);
        margin-top: 2px;
        margin-bottom: 2px;
        margin-right: 10px;
      }
    }

    div {
      margin-top: 2px;
    }
  }

  .deprecation-container {
    .deprecation-expander {
      display: flex;
      justify-content: space-between;
      vertical-align: middle;
      width: 100%;

      .deprecation-expander-container {
        display: flex;

        .deprecation-expander-icon {
          position: unset;
          top: unset;
        }

        .deprecation-expander-info-right {
          padding-left: 15px;
        }

        .deprecation-expander-severity-rating {
          margin-left: 5px;
        }
      }
    }

    .deprecation-content-container {
      margin-top: 15px;
      padding-top: 15px;
      border-top: 1px solid var(--neutralForeground1Rest);

      p {
        margin-top: 5px;
      }

      p:last-of-type {
        margin-bottom: 0px;
      }
    }
  }

  .vulnerabilities-container {
    .vulnerabilities-expander {
      display: flex;
      justify-content: space-between;
      vertical-align: middle;
      width: 100%;

      .vulnerabilities-expander-container {
        display: flex;

        .vulnerabilities-expander-icon {
          position: unset;
          top: unset;
        }

        .vulnerabilities-expander-info-right {
          padding-left: 15px;
        }
      }
    }

    .vulnerabilities-content-container {
      margin-top: 15px;
      padding-top: 15px;
      border-top: 1px solid var(--neutralForeground1Rest);

      .vulnerabilities-list {
        border-collapse: unset;
      }
    }

    .vulnerabilities-severity-critical {
      color: var(--statusDangerForeground3Rest);
    }

    .vulnerabilities-severity-high {
      color: var(--statusDangerForeground3Rest);
    }

    .vulnerabilities-severity-moderate {
      color: var(--brandForeground1Rest);
    }
  }

  .failed-validation-alert-list {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .package-details-main {
    color: var(--neutralForeground1Rest);
    .break-word;

    .package-icon-cell {
      cursor: default;
      padding-left: 0;
      padding-right: 0;
      text-align: right;
      display: flex;
      justify-content: center;
    }
  }

  .package-details-info {
    .ms-Icon-ul {
      li {
        margin-bottom: 18px;
      }

      .ms-Icon {
        top: 1px;
      }

      img.icon {
        position: absolute;
        top: 1px;
        left: -24px;
        width: 16px;
        height: 16px;
        margin-top: 3px;
      }
    }

    .sidebar-headers {
      font-size: 20px;
      font-weight: 600;
      color: var(--neutralForeground1Rest);
      margin-bottom: 14px;
    }

    .sidebar-links {
      font-size: 16px;
    }

    .title-links {
      font-size: 14px;
      font-weight: 400;
      padding-top: 2px;

      a {
        @media (min-width: @screen-md-min) {
          float: right !important;
        }
      }
    }

    .sidebar-section {
      margin-top: 32px;
    }

    .download-info {
      color: var(--neutralForeground1Rest);

      .download-info-row {
        margin-bottom: 15px;
      }

      .download-info-header {
        font-size: 16px;
        font-weight: 400;
        margin-right: 12px;
      }

      .download-info-content {
        font-size: 16px;
        font-weight: 600;
      }
    }
  }

  .owner-list {
    margin-bottom: 40px;

    li {
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;

      .profile-icon {
        margin: 1.5px;
      }

      .username {
        margin-left: 6.5px;
      }
    }

    img {
      border-radius: 5px;
      margin: 2px;
    }
  }

  .report-link {
    i {
      color: var(--statusDangerForeground3Rest);
      font-weight: bold;
    }
  }

  .git-image-icon {
    background-image: var(--git-background-image);
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
    position: absolute;
    left: -24px;
    top: 3px;
  }

  .share-buttons {
    display: flex;
    gap: 10px;

    a {
      display: flex;
      align-items: center;
    }
  }

  .used-by-desc {
    font-family: @font-family-base;
    font-size: 14px;
    color: var(--neutralForeground3Rest);
    margin: 4px 0 0 0;
    line-height: 16px;
  }

  .used-by-link {
    font-family: @font-family-base;
    font-size: 16px;
    line-height: 19px;
  }

  .gh-link, .ngp-link {
    font-family: @font-family-base;
    font-size: 16px;
    line-height: 19px;
    width: auto;
  }

  .used-by-download-icon {
    font-size: 14px;
    line-height: 12px;
  }

  .used-by-count {
    font-family: @font-family-base;
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    color: var(--neutralForeground3Rest);
  }

  .gh-star {
    font-size: 14px;
    line-height: 12px;
    /* Use a slightly darker orange color to increase contrast for accessibility */
    color: var(--statusWarningForeground1Rest);
  }

  .used-by {
    h3 {
      strong {
        font-weight: 400;
      }
    }

    .reserved-indicator {
      width: 14px;
      margin-bottom: 3px;
      margin-left: 2px;
      vertical-align: middle;
      color: var(--brandBackground1Rest);
    }
  }

  .used-by-adjust-table-head {
    word-break: normal;
  }

  .used-by-desc-column {
    width: 85%;
  }

  .install-tabs {
    font-size: 0.8em;

    ul {
      margin-left: 0;
    }

    .nav-tabs {
      border: 0;

      > li {
        margin-right: 4px;
        padding: 0;
        margin-bottom: 0;

        > a {
          color: var(--neutralForeground1Rest);
          background-color: var(--neutralBackgroundSubtleRest);
          padding: 5px 10px;
          border-bottom: 0;
          top: 2px;
          border-radius: 6px 6px 0px 0px;
          border-bottom: 0;
          border-top: 2px solid transparent;
          border-right: 2px solid transparent;
          border-left: 2px solid transparent;
          outline: none;

          &:hover {
            background-color: var(--neutralBackgroundSubtleHover);
            color: var(--neutralForeground1Hover);
          }

          &:active:focus {
            background-color: var(--neutralBackgroundSubtlePressed);
            color: var(--neutralForeground1Pressed);
          }

          &:focus {
            background-color: var(--neutralBackground1Rest);
            border-top: 2px solid var(--neutralStrokeFocus2Rest);
            border-right: 2px solid var(--neutralStrokeFocus2Rest);
            border-left: 2px solid var(--neutralStrokeFocus2Rest);
          }
        }
      }
    }

    .nav-tabs > li.active > a {
      background-color: var(--neutralBackground1Rest);
      border-radius: 6px 6px 0px 0px;
      border-top: 2px solid var(--neutralStroke1Rest);
      border-right: 2px solid var(--neutralStroke1Rest);
      border-left: 2px solid var(--neutralStroke1Rest);
      color: var(--neutralForeground1Rest);
      top: 2px;

      &:hover {
        background-color: var(--neutralBackgroundSubtleHover);
        color: var(--neutralForeground1Hover);
      }

      &:active:focus {
        background-color: var(--neutralBackgroundSubtlePressed);
        color: var(--neutralForeground1Pressed);
      }

      &:focus {
        background-color: var(--neutralBackground1Rest);
        border-top: 2px solid var(--neutralStrokeFocus2Rest);
        border-right: 2px solid var(--neutralStrokeFocus2Rest);
        border-left: 2px solid var(--neutralStrokeFocus2Rest);
      }
    }

    .tab-content {
      background-color: var(--neutralBackground1Rest);

      .tab-pane.active {
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      .tab-pane {
        background-color: var(--neutralBackground2Rest);

        .install-script-row {
          display: flex;

          .install-script {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 8px;
            background-color: var(--neutralBackground1Rest);
            font-family: @font-family-monospace;
            font-size: 1em;
            color: var(--neutralForeground1Rest);
            width: 100%;
            line-height: 1.5;
            white-space: pre-wrap;
            // Add a border with the same color as the background to support visual callout
            // in high contrast mode (since borders are shown).
            border: 2px solid var(--neutralStroke1Rest);
            border-radius: 0px 6px 6px 6px;
            vertical-align: middle;
            word-break: break-word;
            margin: 0px;
          }

          .copy-button {
            display: flex;

            button {
              display: flex;
              gap: 4px;
              padding: 2px 8px;
              justify-content: center;
              align-items: center;
            }
          }
        }

        .alert {
          margin: 0;
          width: 100%;

          a {
            font-weight: 600;
          }
        }
      }
    }
  }

  .body-tabs {
    .nav-tabs > li {
      padding-right: 2px;
    }

    .nav-tabs > li.active > a {
      border-bottom-color: var(--brandStrokeCompoundRest);
      border-bottom-width: 2px;
      -webkit-text-stroke-width: calc(0.5 * 0.04ex);
      text-shadow: calc(0.5 * -0.03ex) 0 0 currentColor, calc(0.5 * 0.03ex) 0 0 currentColor;
      margin-bottom: -1px;
      background-color: transparent;

      i {
        color: var(--brandStrokeCompoundRest);
      }

      &:hover {
        border-bottom-color: var(--brandStrokeCompoundHover);
        border-bottom-width: 2px;
      }

      &:active {
        border-bottom-color: var(--brandStrokeCompoundPressed);
        border-bottom-width: 2px;
      }

      &:focus {
        border-radius: 2px;
        outline: 3px solid var(--neutralStrokeFocus2Rest);
        outline-offset: 1px;
      }
    }

    .nav-tabs > li.active > a.body-warning-tab > {
      background-color: var(--statusWarningBackground1Rest);
      border-bottom-color: var(--statusWarningStroke1Rest);
      border-bottom-width: 2px;
    }

    .nav-tabs > li > a {
      border-left: 0px;
      border-right: 0px;
      border-top: 0px;
      border-bottom-width: 2px;
      font-size: 14px;
      font-family: @font-family-base;
      color: var(--neutralForeground1Rest);
      background-color: transparent;

      &:hover {
        border-bottom-color: var(--neutralStroke1Hover);
        border-bottom-width: 2px;
        background-color: var(--neutralBackgroundSubtleHover);
        border-radius: 2px 2px 0px 0px;
      }

      &:active {
        border-bottom-color: var(--neutralStroke1Pressed);
        border-bottom-width: 2px;
        background-color: var(--neutralBackgroundSubtlePressed);
      }

      &:focus {
        border-radius: 2px;
        outline: 3px solid var(--neutralStrokeFocus2Rest);
        outline-offset: 1px;
      }

      .ms-Icon {
        position: relative;
        top: 2px;
      }
    }
  }

  .body-tab-content {
    padding-top: 30px;

    a {
      font-weight: 600;
    }
    // The "README", "Used By", and "Dependencies" tabs can start with headers.
    // which add additional whitespace between the tab and the content.
    // Undo that whitespace.
    #readme-tab, #usedby-tab {
      h1:first-child,
      h2:first-child,
      h3:first-child,
      h4:first-child,
      h5:first-child,
      h6:first-child {
        margin-top: 0px;
      }

      div.alert:first-child {
        margin-top: 0px;
      }
    }

    #dependencies-tab {
      li:first-child h4 {
        margin-top: 0px;
      }
    }

    #readme-tab {
      // Don't allow README images to overflow
      img {
        max-width: 100%;
      }
    }
  }
}
